{include file="header.tpl"}
<link href="{$smarty.const.CSS}css.css" type="text/css" rel="stylesheet" />
<link href="{$smarty.const.CSS}markitup/default/style.css" type="text/css" rel="stylesheet" />
<link href="{$smarty.const.CSS}markitup/style.css" type="text/css" rel="stylesheet" />
<style type="text/css">
.Validform_checktip{
	margin-left:8px;
	line-height:20px;
	height:20px;
	overflow:hidden;
	color:#999;
	font-size:12px;
}
.Validform_right{
	color:#71b83d;
	padding-left:20px;
	background:url({$smarty.const.IMAGE}right.png) no-repeat left center;
}
.Validform_wrong{
	color:red;
	padding-left:20px;
	white-space:nowrap;
	background:url({$smarty.const.IMAGE}error.png) no-repeat left center;
}
.Validform_loading{
	padding-left:20px;
	background:url({$smarty.const.IMAGE}onLoad.gif) no-repeat left center;
}
</style>
<script type="text/javascript" src="{$smarty.const.JS}jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="{$smarty.const.JS}markitup/jquery.markitup.js"></script>
<script type="text/javascript" src="{$smarty.const.JS}markitup/set.js"></script>
<script type="text/javascript" src="{$smarty.const.JS}Validform.js"></script>
</head>
<BODY>
<div>
<form class="registerform" action="source.php" method="post">
{if $source}
<input type="hidden" name="id" value="{$smarty.get.id}" />
{/if}
<table>
<tr><td class="need">*</td><td>姓名(名称)</td><td><input type="text" name="name" value="{$source.name}" class="inputxt" datatype="s" errormsg="请输入姓名(名称)！"/></td><td><div class="Validform_checktip"></div></td></tr>
<tr><td class="need">*</td><td>电话1</td><td><input type="text" name="phone1" value="{$source.phone1}" class="inputxt" datatype="p" errormsg="请输入正确电话1！" /></td><td><div class="Validform_checktip"></div></td></tr>
<tr><td class="need"></td><td>电话2</td><td><input type="text" name="phone2" value="{$source.phone2}" class="inputxt" datatype="p" ignore="ignore" errormsg="请输入正确电话2！"/></td><td><div class="Validform_checktip"></div></td></tr>
<tr><td class="need">*</td><td>联系地址</td><td><input type="text" name="address" value="{$source.address}" class="inputxt" datatype="s" errormsg="请输入联系地址"/></td><td><div class="Validform_checktip"></div></td></tr>
<tr><td class="need"></td><td>email</td><td><input type="text" name="email" value="{$source.email}" class="inputxt" datatype="e" ignore="ignore" errormsg="请输入正确email！"/></td><td><div class="Validform_checktip"></div></td></tr>
<tr><td class="need"></td><td></td><td><input type="submit" value="提 交" /></td><td></td></tr>
</table>
</form>


<script type="text/javascript">
$(function(){ 
	$(".registerform").Validform({ 
		tiptype:2,
	});
	 
})

   $(document).ready(function() {
     $("textarea").markItUp(mySettings);
   });

</script>
</div>
<a href="index_admin.php">返回</a>



{include file="footer.tpl"}
